<template>
	<view class="content">
		<view>
			<image src="http://hgry.oss-cn-hangzhou.aliyuncs.com/imgs/moban/5-1.png" mode=""></image>
		</view>
		<view>
			<image src="http://hgry.oss-cn-hangzhou.aliyuncs.com/imgs/moban/5-2.png" mode=""></image>
		</view>
		<view>
			<image src="http://hgry.oss-cn-hangzhou.aliyuncs.com/imgs/moban/5-3.png" mode=""></image>
		</view>
		<button open-type="share">确认分享</button>
	</view>
</template>

<script>
	import config from '@/common/config.js';
	export default {
		components: {},
		data() {
			return {}
		},
		onLoad(options) {
			
		},
		onShareAppMessage(res) {
			return {
				title: '分享展会',
				path: 'pages/baoming/baoming-four',
				imageUrl: 'http://hgry.oss-cn-hangzhou.aliyuncs.com/imgs/moban/5-1.png',
				success: function(res) {
					console.log('success')
				},
				fail: function(res) {
					console.log('false')
				},
			}
		},
		methods: {
			addShare(){
				uni.request({
					url: config.ujqApi + '/api/back/addExhibitionSharevolume',
					data: {
						exhibitionId: "1"
					},
					method: "POST",
					header: {
						'content-type': 'application/x-www-form-urlencoded'
					},
					success: function(res) {
						
					}
				});
			}
		}
	}
</script>

<style>
	page {
		background: rgba(245, 245, 245, 1);
		height: 100%
	}

	.content {
		width: 100%;
		height: 100%;
		display: flex;
		flex-wrap: wrap;
		flex-direction: row;
	}
	
	.content view {
		width: 44%;
		margin: 1% 3%;
		height: 48%;
	}
	
	.content view image {
		width: 100%;
		height: 100%;
	}
	
	button {
		width: 44%;
		margin: 1% 3%;
		height: 50px;
		line-height: 50px;
		margin-top: 35%;
	}

</style>
